Plan

data class Plan(val staticConfig: Plan.StaticConfig? = null, val items: List<Plan.Item>)

Plan file representation.

Parrot Plan format documentation

Parameters

staticConfig

static config of the plan, null if none

items

list of items of the plan

Constructors

Link copied to clipboard
constructor(staticConfig: Plan.StaticConfig? = null, items: List<Plan.Item>)

Types

Link copied to clipboard
interface Item
Link copied to clipboard

Exception thrown whenever parsing a plan file format fails.

Link copied to clipboard
data class StaticConfig(var customRth: Boolean? = null, var rthType: ReturnHomePilotingItf.Target? = null, var rthAltitude: Double? = null, var rthEndAltitude: Double? = null, var disconnectionPolicy: FlightPlanPilotingItf.DisconnectionPolicy? = null, var rthEndingBehavior: ReturnHomePilotingItf.EndingBehavior? = null, var digitalSignature: Camera.DigitalSignature? = null, var customId: String? = null, var customTitle: String? = null)

Static config of a plan.

Properties

Link copied to clipboard

Convenience function that provides a list of all plan commands, in order.

Link copied to clipboard

Convenience function that provides a list of all plan item configs, in order.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Plan.generateTo(output: OutputStream, groundStationName: String)

Serializes a plan to a given output stream.